package com.aaa.util;

import java.util.Map;

/**
 * @BelongsPackage: com.aaa.util
 * @Description:
 * @CreateTime: 2023-03-27  16:19
 * @Author: ql
 */
public class WebGetUser {

    public static String UserUtil(){
        String token = WebUtil.getRequest().getHeader("token");
//        System.out.println("------------------------------ " + token);
        Map<String, Object> tokenInfo = JwtUtil.getTokenChaim(token);
        return (String) tokenInfo.get("username");
    }
}
